package com.sgzn.sgpay.model.request;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * Created by xxjs-gd-llf
 * DATETIME:2018/5/19 14:09
 * Description:添加设备
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class SgsPresentAddRequest extends SgsMerchantBaseRequest {

    /**
     * 礼品名称
     */
    @NotBlank(message = "礼品名称不能为空 ")
    private String presentName;

    /**
     * 礼品单价
     */
    @NotBlank(message = "礼品单价不能为空")
    @Pattern(regexp = "^[1-9]{1}$|^[1-9]{1}[0-9]{1}$|^[1-9]{1}[0-9]{1}[0-9]{1}$", message = "礼品单价只能为整数,并小于999")
    private String presentPrice;
}
